<template>
<h2>User-id:{{ router.params.id }}</h2>
</template>
<script setup>
import { useRoute } from 'vue-router'
const router = useRoute();
console.log(router);
</script>
<style scoped lang="less">
</style>